package com.example.myapplication.adapter

import com.bumptech.glide.Glide
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.example.myapplication.R
import com.example.myapplication.entity.Clothing_Entity
import com.example.myapplication.entity.Fenlei_Entity
import kotlinx.android.synthetic.main.item.view.*

class FenleiImg_Adapter(layout:Int, data:ArrayList<Clothing_Entity.data>) : BaseQuickAdapter<Clothing_Entity.data,BaseViewHolder>(layout,data) {
    override fun convert(holder: BaseViewHolder, item: Clothing_Entity.data) {

        Glide.with(mContext).load("http://iwenwiki.com/api/yoho"+item.image_path).into(holder.getView(R.id.item_img))
        holder.setText(R.id.item2_tex,item.name)
    }

}